<template>
<view>
<view v-for="(item, index) in list" :key="index" class="modle" v-if="list.length>0">
    <view class="modle_top">{{item.detail}}
    <text class="modle_top_right">-{{item.account}}元</text>
    </view>
    <view class="modle_btm">{{item.create_time}}
    <text class="modle_top_right jujue" v-if="item.status==2">已拒绝</text>
        <text class="modle_top_right tixian" v-if="item.status==1">已提现</text>
        <text class="modle_top_right shenhe" v-if="item.status==0">审核中</text>
    </view>
</view>
<block v-if="list.length<=0">
    <!--<import src="/pages/data_null/index.wxml"></import>-->
    <view>
        <block data-type="template" data-is="title" data-attr="title:'暂无查看数据'">
    <view class="zanwushuju_border">
        <image class="zanwushuju_border_img" src="/static/pages/image/none_message.png"></image>
        <view class="zanwushuju_border_title">{{'暂无收藏数据'}}</view>
    </view>
</block>
    </view>
</block>
</view>
</template>

<script>
var app = getApp();

export default {
  data() {
    return {
      page: 1,
      is_last: !1,
      list: []
    };
  },

  components: {},
  props: {},
  onLoad: function (a) {
    var t = this;
    wx.setNavigationBarTitle({
      title: "提现明细"
    }), app.globalData.util.request({
      url: "entry/wxapp/Api",
      data: {
        m: "monai_market",
        r: "store.getWithdraw",
        uid: wx.getStorageSync("uid")
      },
      success: function (a) {
        a.data.data && t.setData({
          list: a.data.data
        });
      }
    });
  },
  onReachBottom: function () {
    var s = this;
    s.is_last || app.globalData.util.request({
      url: "entry/wxapp/Api",
      data: {
        m: "monai_market",
        r: "store.getWithdraw",
        uid: wx.getStorageSync("uid"),
        page: s.page + 1
      },
      success: function (a) {
        a.data.data || (s.setData({
          is_last: !0
        }), wx.showToast({
          title: "没有更多数据了",
          icon: "success",
          duration: 2e3
        }));

        for (var t = s.list, e = 0; e < a.data.data.length; e++) t.push(a.data.data[e]);

        s.setData({
          list: t,
          page: s.page + 1
        });
      }
    });
  },
  methods: {}
};
</script>
<style>
@import "./tixianjilu.css";
</style>